package com.zbkj.crmeb.user.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 服务商用户request
 *
 * @author lvmd
 * @date 2022-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AgentUserRequest对象")
public class AgentUserRequest implements Serializable {

    @ApiModelProperty(value = "一级服务商id")
    private Integer oneLevelAgentId;

    @ApiModelProperty(value = "二级服务商id")
    private Integer twoLevelAgentId;

    @ApiModelProperty(value = "一级服务商ids")
    private List<Integer> oneLevelAgentIds;

    @ApiModelProperty(value = "二级服务商ids")
    private List<Integer> twoLevelAgentIds;

    @ApiModelProperty(value = "关键字")
    private String keywords;

    @ApiModelProperty(value = "时间")
    private String data;

    @ApiModelProperty(value = "用户分组")
    private String groupId;

    @ApiModelProperty(value = "用户标签")
    private String labelId;

    @ApiModelProperty(value = "用户登陆类型，h5 = h5， wechat = wechat，routine = routine", allowableValues = "range[h5,wechat,routine]")
    @NotBlank(message = "请选择用户登录类型")
    private String userType;

    @ApiModelProperty(value = "状态是否正常， 0 = 禁止， 1 = 正常")
    private Boolean status = null;

    @ApiModelProperty(value = "是否为推广员， 0 = 禁止， 1 = 正常")
    private Boolean isPromoter = null;

    @ApiModelProperty(value = "消费情况")
    private String payCount;

    @ApiModelProperty(value = "等级")
    private String level;

    @ApiModelProperty(value = "所属商户id")
    private Integer merId;

    //时间类型
    @ApiModelProperty(value = "访问情况， 0 = 全部， 1 = 首次， 2 = 访问过， 3 = 未访问", allowableValues = "range[0,1,2,3]")
    @NotNull(message = "访问情况不能为空")
    private Integer accessType = 0;

    @ApiModelProperty(value = "国家，中国CN，其他OTHER")
    private String country;

    @ApiModelProperty(value = "性别，0未知，1男，2女，3保密")
    private String sex;

    @ApiModelProperty(value = "推广人关键字")
    private String spreadKeyword;

    @ApiModelProperty(value = "标签id")
    private Integer tagId;

    @ApiModelProperty(value = "小程序筛选  1:消费金额最多  2:消费次数最多  3:最近消费")
    private Integer consumptionType;

}
